package com.ceshiren.Pages;

import org.openqa.selenium.By;

public class MainPage extends BasePage{

    private final By searchbutton= By.cssSelector(".fa.d-icon.d-icon-search.svg-icon.svg-node");
    private final By saerchbox=By.id("search-term");
    private final By search=By.cssSelector(".fa.d-icon.d-icon-sliders-h.svg-icon.svg-node");

    public MainPage(String baseurl) {
        super(baseurl);
    }
    public SearchResultPage gotoSearchResult(String words){
       find(searchbutton).click();
       shot();
       find(saerchbox).sendKeys(words);
       shot();
       find(search).click();
        shot();
       return new SearchResultPage(driver);
    }

}
